import { sys } from "cc";

export class PlayerPreference{
  static setFloat(key: string, value: number)
  {
    sys.localStorage.setItem(key, value.toString());
  }

  static getFloat(key: string)
  {
    return Number.parseFloat(sys.localStorage.getItem(key));
  }
}